﻿
    <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        x:Class="OpenLS.Spreadsheet.UI.PasteSpecialOperationResources"
    xmlns:ss="http://schemas.Kherty.com/office/2007/spreadsheet" 
    xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI" 
    xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals" 
    xmlns:Internals1="clr-namespace:OpenLS.UI.Internals;assembly=OpenLS.UI" 
>
    <DataTemplate DataType="{x:Type ssui:PasteSpecialOperation}">
        <StackPanel>
            <StackPanel.Resources>
                <Style TargetType="{x:Type RadioButton}">
                    <Setter Property="Margin" Value="3"/>
                </Style>
                <Style TargetType="{x:Type TextBlock}">
                    <Setter Property="Margin" Value="0"/>
                </Style>
            </StackPanel.Resources>
            <GroupBox Header="{Binding Source={x:Static ApplicationCommands.Paste}, Path=Name}" CheckBox.Checked="OnChecked">
                <UniformGrid Columns ="2">
                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyAll}">_All</RadioButton>
                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyAll}" IsEnabled ="False">All using source theme</RadioButton>

                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyValueAndFormula}">_Formulas</RadioButton>
                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyAllExceptBorders}">All e_xcept borders</RadioButton>

                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyValue}">_Values</RadioButton>
                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyColumnWidth}">Column _width</RadioButton>

                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyFormats}">_Formats</RadioButton>
                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyFormulaAndFormat}">Formulas and number formats</RadioButton>

                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyComment}">_Comments</RadioButton>
                    <RadioButton Tag="{x:Static ssui:RangeFunctions.ApplyValueAndFormat}">Values and number formats</RadioButton>

                    <RadioButton  Tag="{x:Static ssui:RangeFunctions.ApplyValidation}" IsEnabled ="False">Validation</RadioButton>

                </UniformGrid>
            </GroupBox>
            <GroupBox IsEnabled ="False" Header="Operation">
                <UniformGrid Columns="2">
                    <RadioButton>None</RadioButton>
                    <RadioButton>Multiply</RadioButton>

                    <RadioButton>Add</RadioButton>
                    <RadioButton>Divide</RadioButton>

                    <RadioButton>Subtract</RadioButton>
                </UniformGrid>
            </GroupBox>
            <GroupBox Header ="">
                <UniformGrid Columns="2">
                    <CheckBox>Skip blanks</CheckBox>
                    <CheckBox IsChecked="{Binding Transpose}">Transpose</CheckBox>
                </UniformGrid>
            </GroupBox>
            <DockPanel  LastChildFill ="False">
                <Button IsCancel="True" DockPanel.Dock="Right" Content="{x:Static Internals1:UIStringTable.Cancel}"></Button>
                <Button IsDefault="True" DockPanel.Dock="Right" Content="{x:Static Internals1:UIStringTable.OK}"></Button>
                <Button>Paste link</Button>
            </DockPanel>
        </StackPanel>
    </DataTemplate>
</ResourceDictionary>